package com.esd.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.esd.common.pojo.R;
import com.esd.device.entity.Line;
import com.esd.device.entity.vo.LineData;
import com.esd.device.entity.vo.SettingPositionVo;

import java.util.List;
import java.util.Map;

public interface LineService extends IService<Line> {
    R deleteById(Long lineId);

    R addLine(Line line);

    R updateLine(Line line);

    R saveModule(Map<String, String> params);

    R getModule(String lineName);

    R getModuleImages();

    R getPositions(String lineName);

    R savePositions(Map<String, String> params);

    List<SettingPositionVo> generatePositionVos(Long lineId) ;

    R getCurrentStatus(String lineName);

    R getLineCount();

    List<List<LineData>> getLineDataList();

    List<Line> selectAllHasDevice();

    R setViewOn(Long lineId, String value);

    List<Line> listAllViewOn();
}
